package com.kettle.controllerapis;

import com.kettle.config.aop.ControllerWebLog;
import org.springframework.web.bind.annotation.RequestBody;

import com.kettle.model.datalog.Datalog;
import com.kettle.model.quartz.ReturnResult;
import com.kettle.model.rowpage.PageResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
/**
 * 日志信息API接口 控制层
 * @author king
 * @version 1.0.1
 */
@Api(value="日志信息接口",tags ="日志信息接口")
public interface DatalogControllerApi {
	
	@ApiOperation(value = "查询日志列表",notes = "多个参数，多种的查询参数类型,分页查询")
	@ApiImplicitParams({
		@ApiImplicitParam(name = "datalog", value = "kettle日志实体", required = true,paramType="Datalog",dataType = "Datalog"),
        @ApiImplicitParam(name="page",value="页码", required=true,paramType="form",dataType="Integer",example ="1"),
        @ApiImplicitParam(name="rows",value="每页数",required=true,paramType="form",dataType="Integer",example ="10")
    })
	@ControllerWebLog(name = "查询日志列表", intoDb = false)
	public PageResult logslist(Datalog datalog,Integer page, Integer rows);

	@ApiOperation(value = "保存日志信息",notes = "多个参数，多种的查询参数类型")
	@ApiImplicitParam(name = "datalog", value = "kettle日志实体", required = true, dataType = "Datalog",dataTypeClass =Datalog.class)
	@ControllerWebLog(name = "保存日志信息", intoDb = false)
	public ReturnResult savelogs(@RequestBody Datalog datalog);
	
	@ApiOperation(value = "查询日志详情",notes = "根据序号查询详情")
	@ApiImplicitParam(name = "xh", value = "日志序号", required = true, dataType = "String")
	@ControllerWebLog(name = "查询日志详情", intoDb = false)
	public Datalog findlogs(String xh);
}
